package com.example.modelsystem.controller;

import com.example.modelsystem.dao.RecentChatMapper;
import com.example.modelsystem.entity.RecentChatEntity;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * 请填写说明
 *
 * @author : bugu
 * @date : 2024-11-15 10:21
 */
@Api(tags = "请求模板")
@RestController
public class ModelController {
      @Autowired
      RecentChatMapper recentChatMapper;

    @ApiOperation(value = "传递路径参数", notes = "将入参放在路径中")
    @ApiImplicitParam(paramType = "path", required = true, name = "param", value = "参数", defaultValue = "1")
    @ApiResponses({
            @ApiResponse(code = 422, message = "用户Id不能为空"),
            @ApiResponse(code = 200, message = "获取成功", response = RecentChatEntity.class)
    })
    @GetMapping("/path-variable/{param}")
    public ResponseEntity pathVariable(@PathVariable Integer param) {
        return null;
    }
}
